import request from "@/utils/request";

// 查询标签信息列表
export const gettagListApi = (params) =>
  request({
    method: "get",
    url: "/subject/tag",
    params,
  });

// 查询标签信息详情
export const gettagApi = (id) =>
  request({
    method: "get",
    url: "/subject/tag/" + id,
  });

// 增加标签信息
export const addtagApi = (data) =>
  request({
    method: "post",
    url: "/subject/tag",
    data,
  });
// 修改标签信息
export const edittagApi = (data) =>
  request({
    method: "put",
    url: "/subject/tag/" + data.id,
    data,
  });
// 删除标签信息
export const deltagApi = (id) =>
  request({
    method: "DELETE",
    url: "/subject/tag/" + id,
  });
